package kxfang.com.common.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by ZJ
 * on 2019/12/21
 * Class Content 生活服务首页实体类
 */
public class LifeModel implements Parcelable {


    private List<TopListModel> topList;
    private List<HomeStoreModel> businessList = new ArrayList<>();
    private List<HomeStoreModel> vipbusinessList;
    private List<GoodsListModel> goodsList;
    private List<String> label;

    protected LifeModel(Parcel in) {
        businessList = in.createTypedArrayList(HomeStoreModel.CREATOR);
        vipbusinessList = in.createTypedArrayList(HomeStoreModel.CREATOR);
        goodsList = in.createTypedArrayList(GoodsListModel.CREATOR);
        label = in.createStringArrayList();
    }

    public static final Creator<LifeModel> CREATOR = new Creator<LifeModel>() {
        @Override
        public LifeModel createFromParcel(Parcel in) {
            return new LifeModel(in);
        }

        @Override
        public LifeModel[] newArray(int size) {
            return new LifeModel[size];
        }
    };

    public List<TopListModel> getTopList() {
        return topList;
    }

    public void setTopList(List<TopListModel> topList) {
        this.topList = topList;
    }

    public List<HomeStoreModel> getBusinessList() {
        return businessList;
    }

    public void setBusinessList(List<HomeStoreModel> businessList) {
        this.businessList = businessList;
    }

    public List<HomeStoreModel> getVipbusinessList() {
        return vipbusinessList;
    }

    public void setVipbusinessList(List<HomeStoreModel> vipbusinessList) {
        this.vipbusinessList = vipbusinessList;
    }

    public List<GoodsListModel> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListModel> goodsList) {
        this.goodsList = goodsList;
    }

    public List<String> getLabel() {
        return label;
    }

    public void setLabel(List<String> label) {
        this.label = label;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(businessList);
        dest.writeTypedList(vipbusinessList);
        dest.writeTypedList(goodsList);
        dest.writeStringList(label);
    }



}
